<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>权限管理首页</title>
<%
	String path = request.getContextPath();
	request.setAttribute("path", request.getContextPath());
%>
<%
	if(session.getAttribute("staff") == null){
		response.sendRedirect(request.getContextPath() + "/global/login");
	}
 %>
<link href="${path}/images/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${path}/js/jquery.min.js"></script>
<script type="text/javascript">
$(function(){
	$('.menu').height($(window).height()-51-27-26);
	$('.sidebar').height($(window).height()-51-27-26);
	$('.page').height($(window).height()-51-27-26);
	$('.page iframe').width($(window).width()-15-168);
	$('.btn').click(function(){
		$('.menu').toggle();
		if($(".menu").is(":hidden")){
		$('.page iframe').width($(window).width()-15+5);
		}else{
			$('.page iframe').width($(window).width()-15-168);
		}
	});
	$('.subMenu a[href="#"]').click(function(){
		$(this).next('ul').toggle();
		return false;
	});
});
</script>
</head>
<body>
<div id="wrap">
	<div id="header">
    <div class="logo fleft">欢迎您：${staff.staffNum}</div>
    <a class="logout fright" href="${path}/global/logout"> </a>
    <div class="clear"></div>
    <div class="subnav">
    	<div class="subnavLeft fleft"></div>
        <div class="fleft"></div>
        <div class="subnavRight fright"></div>
    </div>
    </div><!--#header -->
    <div id="content">
    <div class="space"></div>
    <div class="menu fleft">
    	<ul>
        	<li class="subMenuTitle">用户管理系统</li>
        	<!-- 菜单项 -->
            <li class="subMenu"><a target="right" href="${path}/global/page?flag=staff">用户信息管理</a></li>
            <li class="subMenu"><a target="right" href="${path}/global/page?flag=functionAuthority">用户操作权限</a></li>
            <li class="subMenu"><a target="right" href="${path}/global/page?flag=sysRole">系统角色管理</a></li>
            <li class="subMenu"><a target="right" href="${path}/global/page?flag=roleAuthority">角色权限管理</a></li>
            <li class="subMenu"><a target="right" href="${path}/global/page?flag=userRole">用户角色管理</a></li> 
        </ul>
    </div>
    <div class="sidebar fleft"><div class="btn"></div></div>
    <div class="page">
   	<iframe src="${path}/global/page" width="100%" scrolling="auto" height="100%" frameborder="false" allowtransparency="true" style="border: medium none;" id="rightMain" name="right"></iframe>
    </div>
    </div><!--#content -->
    <div class="clear"></div>
    <div id="footer"></div><!--#footer -->
</div><!--#wrap -->
<div style="text-align:center;">
</div>
</body>
</html>
